﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class vip_login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Request.Form.Count > 0)
        {
            string login = this.Request["login"];
            string password = this.Request["password"];

            if (string.IsNullOrEmpty(login) == false && string.IsNullOrEmpty(password) == false)
            {
                string message = "";
                if (PL.General.Instance.LoginUser(login, password, this.Session, out message) == true)
                {
                    this.Response.Redirect("index.aspx");
                }
                else
                {
                    this.Response.Write(PL.General.Instance.GetAlert(message));
                }
            }
            else
            {
            }
        }
    }    
}